package com.example.choupaiapp.common.finalokgo.request;

import android.support.annotation.StringDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 网络请求类型，具体请求过程中只需进行选择调用即可
 * <p>
 * Created by Administrator on 2016/12/26.
 */

public class RequestType {
    @StringDef({GET, GETHEAD, GETLIST, GETLISTHEAD, POST, POSTHEAD, POSTFILE, POSTFILEHEAD, POSTLIST
            , POSTLISTHEAD, POSTFORSTRING, POSTJSON, POSTJSONHEAD, POSTJSONHEADNOCACHE, POSTJSONFILEHEAD, DOWNLOADFILE})
    @Retention(RetentionPolicy.SOURCE)
    public @interface RequestTypes {
    }

    public static final String GET = "get";
    public static final String GETHEAD = "getHead";
    public static final String GETLIST = "getList";
    public static final String GETLISTHEAD = "getListHead";
    public static final String POST = "post";
    public static final String POSTHEAD = "postHead";
    public static final String POSTFILE = "postFile";
    public static final String POSTFILEHEAD = "postFileHead";
    public static final String POSTLIST = "postList";
    public static final String POSTLISTHEAD = "postListHead";
    public static final String POSTFORSTRING = "postForString";
    public static final String POSTJSON = "postJson";
    public static final String POSTJSONHEAD = "postJsonHead";
    public static final String POSTJSONHEADNOCACHE = "postJsonHeadNoCache";
    public static final String POSTJSONFILEHEAD = "uploadFile";
    public static final String DOWNLOADFILE = "downloadFile";
}
